extends CardState

# 卡牌是否已打出
var placed:bool

func enter()->void:
	if !state:return push_error('状态未分配')
	placed=false
	# 卡牌释放时，放置区是否存在
	if !card.placeArea:return
	placed=true
	card.play()

func onInput(_event:InputEvent)->void:
	if placed:return
	transition.emit(self,State.BASE)

